package com.group3.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * Result
 *
 * @author HY
 * 2021/06/03 15:32
 **/

@Data
@ToString
@ApiModel(value = "基础返回类", description = "基础返回类")
public class Result <T> {

    /**
     * 返回状态码
     */
    @ApiModelProperty(value = "状态码")
    private int code;
    /**
     * 提示信息
     */
    @ApiModelProperty(value = "信息")
    private String msg;
    /**
     * 总记录条数
     */
    @ApiModelProperty(value = "总记录条数")
    private long count;
    /**
     * 返回数据
     */
    @ApiModelProperty(value = "数据")
    private T data;

}
